Re: [NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
4} + 2n > \stopformula > \stoptext > > I looked at \chemical and \molecule, but could not find a way to make > isotopes with those. Any ideas? > > Gavin > > ___ If your question is of in

[NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
} + {\rm Xe}^^{140}__{54} + 2n \stopformula \stoptext I looked at \chemical and \molecule, but could not find a way to make isotopes with those. Any ideas? Gavin PastedGraphic-1.pdf Description: Adobe PDF document

[NTG-context] ppchtex, color and mkiv

2010-11-19 Thread Jörg Hagmann
From a thread on this list (May 2009: http://archive.contextgarden.net/message/20090512.132914.5c29b5f4.en.html) I gather that whereas colouring a whole molecule works fine, colouring groups within a chemical structure is not yet fully implemented in mkiv. Is that still correct? Putting

Re: [NTG-context] ppchtex, color and mkiv

2010-11-19 Thread Alan BRASLAU
On Friday 19 November 2010 09:52:47 Jörg Hagmann wrote: From a thread on this list (May 2009: http://archive.contextgarden.net/message/20090512.132914.5c29b5f4.en.html) I gather that whereas colouring a whole molecule works fine, colouring groups within a chemical structure is not yet fully

[NTG-context] the other blog (chemical stuff)

2009-03-06 Thread Hans Hagen
... the following version supports nested braces and numbers (we can let this evolve in a proper chemical subsystem if needed since eventually i will replace ppchtex anyway) \startluacode local molecule = { } local format, sprint = string.format, tex.sprint function commands.justtext(one) sprint

Re: [NTG-context] Taco's \molecule fails in mkiv

2009-02-24 Thread Wolfgang Schuster
molecule_lpeg.tex Description: Binary data Am 23.02.2009 um 18:14 schrieb Mojca Miklavec: thanks a lot for the very nice code :) :) :) The second example (H_2^+) does not return expected result - it should have been H\lohi{2}{+} instead, but I don't require such cases for the current

[NTG-context] Taco's \molecule fails in mkiv

2009-02-23 Thread Mojca Miklavec
[small]#1}}\fi } \def\finishchem% {\ifvoid\chemlowbox \else \iffluor \fluorfalse \kern-.1em \fi\low{\box\chemlowbox}\fi} % for kerning after F \newif\iffluor \unexpanded\def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active \uccode

Re: [NTG-context] Taco's \molecule fails in mkiv

2009-02-23 Thread Wolfgang Schuster
) end \stopluacode \def\molecule#1{\ctxlua{thirddata.molecule('#1')}} \starttext \molecule{H_2SO_4} \molecule{H_2^+} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Taco's \molecule fails in mkiv

2009-02-23 Thread luigi scarso
(text) text = string.gsub(text,_,\\low) text = string.gsub(text,%^,\\high) tex.sprint(text) end \stopluacode \def\molecule#1{\ctxlua{thirddata.molecule('#1')}} hmm Isn't better to remember original \molecule ? I mean, something like \let\ORIGINALmolecule\molecule \def\molecule#1

[NTG-context] ppchtex rotation

2008-09-22 Thread Alan BRASLAU
Hello, I am having trouble drawing rotated molecules using ppchtex. In the example below, I would like to draw the molecule shown in (a) rotated as shown in (b). I would appreciate any suggestions. Thanks. Alan \usemodule[chemic] \setupchemical[width=fit] \starttext \startcombination[2*1

Re: [NTG-context] \chemical and MKIV

2008-02-22 Thread Peter Münster
Taco's macro for that purpose (works better in titles). See \molecule on http://wiki.contextgarden.net/Chemistry. Hello Mojca, did you try it? Here, I get this error: ! LuaTeX error ...TeX-live/texmf-context/tex/context/base/syst-con.lua:21: bad argument #1 to 'char' (invalid value

Re: [NTG-context] \chemical and MKIV

2008-02-22 Thread Mojca Miklavec
} \stoptext The issue probably needs to be solved, but I happily use Taco's macro for that purpose (works better in titles). See \molecule on http://wiki.contextgarden.net/Chemistry. Hello Mojca, did you try it? Here, I get this error: I didn't claim that it works in mkiv, I still

Re: [NTG-context] \chemical and MKIV

2008-02-21 Thread Mojca Miklavec
in titles). See \molecule on http://wiki.contextgarden.net/Chemistry. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman

Re: [NTG-context] Chemistry in lists

2007-12-23 Thread Mojca Miklavec
}\fi} % for kerning after F \newif\iffluor \unexpanded\def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}% \dostepwiserecurse {65}{90}{1} {\catcode \recurselevel = \active \uccode

Re: [NTG-context] Chemistry in lists

2007-12-23 Thread Shen Chen
Thanks for the suggestion, Taco's \molecule macro works. There is a similar problem for Units (with \usemodule[units]) that appears in headings, table of contents and list of figure captions, etc. Sample code: \usemodule[units] \starttext \placecontent \section{1 \Square\Centi\Meter} Hello world

Re: [NTG-context] \chemical{} + \title{}

2007-03-20 Thread Tobias Burnus
in the title. (The title itself is *not* italic, I'm also not asking that the font/style should follow the surrounding text, though a \setupchemical option which toggles this would be great.) (Using \molecule as defined in the wiki is an alternative; your problem was different as you wanted

Re: [NTG-context] debian tikz module

2007-02-26 Thread Johan Sandblom
notice the missing component. That is bug #394613 in pgf. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive) -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m

Re: [NTG-context] new debian context 2006.12.21-0.1

2006-12-22 Thread Frank Küster
explains in 5 lines why one would want to use ConTeXt instead of LaTeX. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive) ___ ntg-context mailing list ntg

Re: [NTG-context] new debian context, upload to Debian

2006-12-20 Thread Frank Küster
broken software. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-25 Thread Frank Küster
tell us our experiences/failures/suggestions. Frank, is this truely a valid line for sources.list? Yes, I've got plenty of those. My apt shows errors with this line. which errors? Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-24 Thread Frank Küster
with the Debian ConTeXt package. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-24 Thread Frank Küster
people who set env vars wrongly, or completely forgot they ever had... I'll see that I or Norbert Preining look into this and come back with a more constructive proposal. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian

Re: [NTG-context] ConTeXt installtion and Debian

2006-10-24 Thread Frank Küster
like we dropped the program-specific paths (and with that their order), and like it wouldn't have been necessary to add a hack (but I know that at the time of the teTex-3.0-beta-release when I introduced it it *was* necessary). Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-24 Thread Frank Küster
live alongside a tetex was always kind of problematic due to path settings and this autoparent mess then deriving locations of texmf.cnf from it This is probably still a problem in standard-setup systems. Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst

[NTG-context] ConTeXt on Debian: The wiki entry

2006-10-23 Thread Frank Küster
://www.tug.org/texlive/Debian/ context/ to your /etc/apt/sources.list file and install context. After this, please tell us our experiences/failures/suggestions. Thanks a lot and all the best Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-23 Thread Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-23 Thread Frank Küster
to be called - when ConTeXt is updated - when any of the engines is updated? I don't use ConTeXt myself, and I always have problems finding the relevant places in the documentation, sorry... Regards, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-23 Thread Frank Küster
? TIA, Frank -- Dr. Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX/TeXLive) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] small caps italic and font switching inside math

2006-07-02 Thread Taco Hoekwater
Mojca Miklavec wrote: It works perfect except in a single case: \title{\molecule{SF_6}} I had seen that, but not yet bothered to fix it. Still, it is fairly easy to change the macro, try the version below. Sorry, I thought you were talking about the spacing between F and 6. Didn't work

Re: [NTG-context] small caps italic and font switching inside math

2006-07-02 Thread Mojca Miklavec
On 7/2/06, Taco Hoekwater wrote: Mojca Miklavec wrote: It works perfect except in a single case: \title{\molecule{SF_6}} I had seen that, but not yet bothered to fix it. Still, it is fairly easy to change the macro, try the version below. Sorry, I thought you were talking about

Re: [NTG-context] [tex-live] man page for mptopdf

2006-07-02 Thread Frank Küster
mptopdf.1.gz Description: manpage -- Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg

Re: [NTG-context] small caps italic and font switching inside math

2006-07-01 Thread Taco Hoekwater
to Does that really look better? You can have bold endashes, but you will not get a bold minus. remove [left] because that one is only good for isotopes such as ah. i misunderstood that. It works perfect except in a single case: \title{\molecule{SF_6}} I had seen that, but not yet bothered

Re: [NTG-context] small caps italic and font switching inside math

2006-07-01 Thread Mojca Miklavec
matter that much. It works perfect except in a single case: \title{\molecule{SF_6}} I had seen that, but not yet bothered to fix it. Still, it is fairly easy to change the macro, try the version below. Didn't work in titles either (or I did something strange) :( But If I write a couple

Re: [NTG-context] small caps italic and font switching inside math

2006-06-30 Thread Mojca Miklavec
{{\switchtobodyfont[small]#1}}% \else \lohi[left]{\box\chemlowbox}{{\switchtobodyfont[small]#1}}\fi } \def\finishchem{\ifvoid\chemlowbox \else \low{\box\chemlowbox}\fi} \unexpanded\def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
it), not a mathematical thing. I have a lot of simple formulas such as \molecule{SF_6} and they look a-kind-of-ugly with a tiny script. So you noticed I was trying to weasly out of something, did you? ;-) Taco % The next macro only works as long as you code the subscripts % before

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
} \def\finishchem{\ifvoid\chemlowbox \else \low{\box\chemlowbox}\fi} \unexpanded\def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}% \dostepwiserecurse {65}{90}{1} {\catcode

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Hans Hagen
}{{\switchtobodyfont[small]#1}}\fi } \def\finishchem{\ifvoid\chemlowbox \else \low{\box\chemlowbox}\fi} \unexpanded\def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}% \dostepwiserecurse {65

[NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Mojca Miklavec
Hello, I have to tiny questions: 1. How do I get small caps [bold] italic (except with the \definedfont[ec-lmxxx])? 2. I defined \molecule to be \def\molecule#1{$\rm#1$}, an usage example would be: \molecule{HSO_4^{-}} But how should I modify this it so that it would also work properly

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Aditya Mahajan
On Wed, 28 Jun 2006, Mojca Miklavec wrote: Hello, I have to tiny questions: 1. How do I get small caps [bold] italic (except with the \definedfont[ec-lmxxx])? No idea. 2. I defined \molecule to be \def\molecule#1{$\rm#1$}, better use {\mathematics{\rm #1}} so that you can also write

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Taco Hoekwater
typescripts, but I do not know how that is supposed to be done in actual code. Some catcode trickery might work. This is all I could manage. This does not work well, because HSO\low{4}\high{-} is not correct. % \def\molecule#1{\mathematics{ {\rm #1}}} \bgroup \catcode`\_=\active

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Mojca Miklavec
in some cases, see below. I converted the document from LaTeX and I didn't came to the idea of using low and high (perhaps just because that's not possible there). % \def\molecule#1{\mathematics{ {\rm #1}}} Thank you for the note. I would never use it inside formulas, but I would never though about